package com.timebank.score.mapper;

import com.timebank.score.pojo.entity.ScoreTrade;
import com.timebank.score.pojo.vo.ScoreTradeVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author shiliuyinzhen
 */
@Mapper
public interface ScoreTradeMapper {

    /**
     * 获取积分交易
     * @param scoreTrade
     * @return
     */
    List<ScoreTradeVO> getScoreTradeList(ScoreTrade scoreTrade);

    /**
     * 创建积分交易
     * @param scoreTrade
     * @return
     */
    int addScoreTrade(ScoreTrade scoreTrade);
}
